<template>
    <div>
        <el-row>
            <el-col :span="12">
                <el-tooltip v-for="(item,index) in operationBtn" :key="index"
                            class="item" effect="dark" :content="item.text" placement="top-start">
                    <el-button :type="item.type"
                            size="small"
                            :icon="item.icon" @click="handleTopBtn(item.methodName)"><!--&nbsp;{{item.text}}-->
                    </el-button>
                </el-tooltip>
            </el-col>
        </el-row>
    </div>
</template>
<script>
export default {
    data(){
        return {
            operationBtn:[]
        }
    },
    methods:{
        handleTopBtn(){
            this.$emit('handleSearchTopBtn', methodName);
        }
    }
}
</script>